package de.lang.rollo.controller.model.json;

import java.io.IOException;







import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.pi4j.io.gpio.Pin;

public class PinSerializer extends JsonSerializer<Pin>{

	@Override
	public void serialize(Pin arg0, JsonGenerator arg1, SerializerProvider arg2)
			throws IOException, JsonProcessingException {
		arg1.writeString(arg0.getAddress() + "");		
	}

}
